if (window.location.href.indexOf('#') > -1) {
	window.location.href = window.location.href.split('#')[0];
}

function see(e) {
	if ($("#username").val().length > 3) {
		$(".prompting").hide();
	} else {
		$(".prompting").show();
	}
	if (e == "no") {
		$('#left-hander').removeClass('initial_left_hand').addClass('left_hand');
		$('#right-hander').removeClass('initial_right_hand').addClass('right_hand')
	} else {
		$('#left-hander').addClass('initial_left_hand').removeClass('left_hand');
		$('#right-hander').addClass('initial_right_hand').removeClass('right_hand');
	}
}

// 点击换一张验证码
function changemyImg() {
	var imgSrc = $("#imgObj");
	var src = imgSrc.attr("src");
	imgSrc.attr("src", chgmyUrl(src));
	$("#info").html("");
}
// 时间戳
// 为了使每次生成图片不一致，即不让浏览器读缓存，所以需要加上时间戳
function chgmyUrl(myurl) {
	var timestamp = (new Date()).valueOf();
	myurl = myurl.substring(0, 37);
	if ((myurl.indexOf("&") >= 0)) {
		myurl = myurl + "×tamp=" + timestamp;
	} else {
		myurl = myurl + "?timestamp=" + timestamp;
	}
	return myurl;
}